package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.BasicServicecityLogMapper;
import com.whq.entity.BasicServicecityLog;
import com.whq.service.BasicServicecityLogService;

@Service(value = "tdBasicServicecityLogService")
public class BasicServicecityLogServiceImpl implements BasicServicecityLogService {

    @Autowired
    private BasicServicecityLogMapper<BasicServicecityLog>tdBasicServicecityLogMapper;
    
    @Override
    public Integer insertSelective(BasicServicecityLog tdBasicServicecityLog) throws Exception {
           return this.tdBasicServicecityLogMapper.insertSelective(tdBasicServicecityLog);
        }

    @Override
    public Integer insertBatch(List<BasicServicecityLog> tdBasicServicecityLog) throws Exception {
           return this.tdBasicServicecityLogMapper.insertBatch(tdBasicServicecityLog) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdBasicServicecityLogMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdBasicServicecityLogMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(BasicServicecityLog tdBasicServicecityLog) {
           return this.tdBasicServicecityLogMapper.updateByPrimaryKeySelective(tdBasicServicecityLog);
    }

    @Override
    public BasicServicecityLog findById(Object id) {
           return (BasicServicecityLog) this.tdBasicServicecityLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<BasicServicecityLog> selectByCondition(BasicServicecityLog tdBasicServicecityLog) {
           return (List<BasicServicecityLog>) this.tdBasicServicecityLogMapper.selectByCondition(tdBasicServicecityLog);
    }

    @Override
    public Integer selectCountByCondition(BasicServicecityLog tdBasicServicecityLog) {
           return  this.tdBasicServicecityLogMapper.selectCountByCondition(tdBasicServicecityLog);
    }

}
